-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--[[




]]--
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

AddPlayerPostInit(function(inst)
    if not TheWorld.ismastersim then
        return
    end
    
    inst:AddComponent("loramia_com_health_hook")
    if inst.components.health then            
        local old_DoDelta = inst.components.health.DoDelta
        inst.components.health.DoDelta = function(self,amount, overtime, cause, ignore_invincible, afflicter, ignore_absorb,...)
            local old_ammount = amount
            amount = self.inst.components.loramia_com_health_hook:GetDeltaHooked(amount, overtime, cause, ignore_invincible, afflicter, ignore_absorb,...) or old_ammount
            return old_DoDelta(self,amount, overtime, cause, ignore_invincible, afflicter, ignore_absorb,...)
        end
    end

end)

